package com.zyong.design.pattern.visitor.case2;

/**
 * @program: zyong-design-pattern
 * @ClassName: Client
 * @author: zyong
 * @create: 2024-03-29 00:26
 */
public class Client {
    public static void main(String[] args) {
        Man man = new Man("男人");
        Women women = new Women("女人");

        ObjectStructure objectStructure = new ObjectStructure();
        objectStructure.addPerson(man);
        objectStructure.addPerson(women);

        System.out.println("=================好评==================");
        objectStructure.evaluationResults(new SuccessPerformance());

        System.out.println("=================差评==================");
        objectStructure.evaluationResults(new FailPerformance());
    }
}
